package com.example.administrator.dagger2demo.di;

import android.app.Application;

import com.example.administrator.dagger2demo.ui.MainActivity;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by Administrator on 2016/4/12.
 */
@Singleton
@Component(modules = {MainModule.class, ApiModule.class})
public interface AppComponent {

    /**
     * 构建 Module 和 Provides 的被依赖的实例
     */
    /**
     * 获取 Application
     * @return
     */
    Application getApplication();

    void inject(MainActivity mainActivity);
    /**
     * 获取RestApi 实例
     *
     * @return
     */


}
